package com.bdmc.alarm.mapper;

import com.bdmc.alarm.domain.AlarmEvent;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.alarm.domain.bo.AlarmEventBo;
import com.bdmc.alarm.domain.vo.AlarmEventVo;
import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 告警事件Mapper接口
 *
 * @author bdmc
 * @date 2022-03-10
 */
public interface AlarmEventMapper extends BaseMapperPlus<AlarmEvent> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<AlarmEventVo> mySelectPage(@Param("page") Page<AlarmEvent> page, @Param("param") AlarmEventBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<AlarmEventVo> mySelectPage(@Param("param") AlarmEventBo bo);
}
